/**
 * ===========================================
 * Project: gamehistory-service
 * ===========================================
 * Package: com.cyou.gamehistory.repository
 * 
 * Copyright (c) 2012, CYOU All Rights Reserved.
 * ===========================================
 */
package com.cyou.gamehistory.repository;

import java.util.List;
import java.util.Map;

import com.cyou.framework.mybatis.MyBatisRepository;
import com.cyou.framework.pagination.proxy.PaginationSupport;
import com.cyou.gamehistory.entity.GameHistory;
import com.cyou.gamehistory.entity.vo.GameStat;

/**
 * <p>GameHistoryDao</p>
 *
 * @since 2012-12-13
 * @version 
 * @author zhangxingkai
 */
@MyBatisRepository
public interface GameHistoryDao {
	
	void saveBatch(List<GameHistory> list);

	void deleteByUserId(Integer userId);

	List<GameHistory> getGameHistoryList(Integer userId);
	
	List<String> getHistoryYear(Integer userId);
	
	List<GameHistory> getAllGameHistoryList(Integer userId);
	
	List<GameHistory> getAllGameHistoryListByOrderNum(Integer userId);

	PaginationSupport<GameHistory> findAllGameHistoryList(
			Map<String, Object> map);

	void deleteBatch(String[] id);

	List<GameStat> getTopGames();
	
	List<GameHistory> getTopYears();

	Integer getTotal();

	List<GameHistory> getGameHistoryListForImage(Integer id);

}
